package gword.generateur;


/**
 * //TODO Add javadoc
 * @author		Schnell Michaël
 * @version		1.0
 */
public interface WordTags {

	public static final String PARAGRAPH_START = "<w:p>"  ; //$NON-NLS-1$
	public static final String PARAGRAPH_END   = "</w:p>" ; //$NON-NLS-1$
	
	public static final String PARAGRAPH_PROPERTIES = 
			"<w:pPr>" + //$NON-NLS-1$
					"<w:pStyle w:val=\"%s\"/>" + //$NON-NLS-1$
			"</w:pPr>" ; //$NON-NLS-1$

	public static final String RUN_START = "<w:r>"  ; //$NON-NLS-1$
	public static final String RUN_END   = "</w:r>" ; //$NON-NLS-1$

	public static final String RUN_PROPERTIES_START = "<w:rPr>"  ; //$NON-NLS-1$
	public static final String RUN_PROPERTIES_END   = "</w:rPr>" ; //$NON-NLS-1$

	public static final String TEXT_START = "<w:t>"  ; //$NON-NLS-1$
	public static final String TEXT_END   = "</w:t>" ; //$NON-NLS-1$
	
	public static final String LIST_ELEMENT_START = 
			"<w:p>" + //$NON-NLS-1$
				"<w:pPr>" + //$NON-NLS-1$
					"<w:listPr>" + //$NON-NLS-1$
						"<w:ilvl w:val=\"%s\"/>" + //$NON-NLS-1$
						"<w:ilfo w:val=\"%s\"/>" + //$NON-NLS-1$
					"</w:listPr>" + //$NON-NLS-1$
				"</w:pPr>" + //$NON-NLS-1$
				"<w:r>" ; //$NON-NLS-1$
	public static final String LIST_ELEMENT_END = 
				"</w:r>" + //$NON-NLS-1$
			"</w:p>" ; //$NON-NLS-1$
	
	public static final String ARRAY_START = "<w:tbl>"  ; //$NON-NLS-1$
	public static final String ARRAY_END   = "</w:tbl>" ; //$NON-NLS-1$
	
	public static final String ARRAY_PROPERTIES = 
			"<w:tblPr>" + //$NON-NLS-1$
				"<w:tblStyle w:val=\"TableStyle\"/>" +  //$NON-NLS-1$
				"<w:tblW w:w=\"%s\" w:type=\"auto\"/>" + //$NON-NLS-1$
				"<w:tblBorders>" + //$NON-NLS-1$
					"<w:top w:val=\"single\" w:sz=\"4\" wx:bdrwidth=\"10\" w:space=\"0\" w:color=\"auto\"/>" + //$NON-NLS-1$
					"<w:left w:val=\"single\" w:sz=\"4\" wx:bdrwidth=\"10\" w:space=\"0\" w:color=\"auto\"/>" + //$NON-NLS-1$
					"<w:bottom w:val=\"single\" w:sz=\"4\" wx:bdrwidth=\"10\" w:space=\"0\" w:color=\"auto\"/>" + //$NON-NLS-1$
					"<w:right w:val=\"single\" w:sz=\"4\" wx:bdrwidth=\"10\" w:space=\"0\" w:color=\"auto\"/>" + //$NON-NLS-1$
					"<w:insideH w:val=\"single\" w:sz=\"4\" wx:bdrwidth=\"10\" w:space=\"0\" w:color=\"auto\"/>" + //$NON-NLS-1$
					"<w:insideV w:val=\"single\" w:sz=\"4\" wx:bdrwidth=\"10\" w:space=\"0\" w:color=\"auto\"/>" + //$NON-NLS-1$
				"</w:tblBorders>" + //$NON-NLS-1$
			"</w:tblPr>" ; //$NON-NLS-1$
	
	public static final String ARRAY_PROPERTIES_GRID_WIDTH_START =
			"<w:tblGrid>" ; //$NON-NLS-1$
	public static final String ARRAY_PROPERTIES_GRID_WIDTH =
				"<w:gridCol w:w=\"%s\"/>" ; //$NON-NLS-1$
	public static final String ARRAY_PROPERTIES_GRID_WIDTH_END =
			"</w:tblGrid>" ; //$NON-NLS-1$
	
	public static final Integer DEFAULT_TABLE_WIDTH = new Integer(9640) ;
	
	public static final String ROW_START = "<w:tr>"  ; //$NON-NLS-1$
	public static final String ROW_END   = "</w:tr>" ; //$NON-NLS-1$
	
	public static final String CELL_START = "<w:tc>"  ; //$NON-NLS-1$
	public static final String CELL_END   = "</w:tc>" ; //$NON-NLS-1$
	
	public static final String CELL_PROPERTIES_START = "<w:tcPr>"  ; //$NON-NLS-1$
	public static final String CELL_PROPERTIES_END   = "</w:tcPr>" ; //$NON-NLS-1$

	public static final String CELL_ROW_SPAN = "<w:vmerge/>"  ; //$NON-NLS-1$
	public static final String CELL_COL_SPAN = "<w:hmerge/>"  ; //$NON-NLS-1$
	
	public static final String HORIZONTAL_SEPARATOR = 
			"<wx:pBdrGroup>" + //$NON-NLS-1$
				"<wx:borders>" + //$NON-NLS-1$
					"<wx:bottom wx:val=\"solid\" wx:bdrwidth=\"30\" wx:space=\"1\" wx:color=\"auto\"/>" + //$NON-NLS-1$
				"</wx:borders>" + //$NON-NLS-1$
				"<w:p wsp:rsidR=\"00000000\" wsp:rsidRDefault=\"0039092C\">" + //$NON-NLS-1$
					"<w:pPr>" + //$NON-NLS-1$
						"<w:pBdr>" + //$NON-NLS-1$
							"<w:bottom w:val=\"single\" w:sz=\"12\" wx:bdrwidth=\"30\" w:space=\"1\" w:color=\"auto\"/>" + //$NON-NLS-1$
						"</w:pBdr>" + //$NON-NLS-1$
					"</w:pPr>" + //$NON-NLS-1$
				"</w:p>" + //$NON-NLS-1$
			"</wx:pBdrGroup>" ; //$NON-NLS-1$
	
	public static final String FORMAT_BOLD = "<w:b/>" ; //$NON-NLS-1$
	public static final String FORMAT_ITALIC = "<w:i/>" ; //$NON-NLS-1$
	public static final String FORMAT_STRUCK = "<w:strike/>" ; //$NON-NLS-1$
	public static final String FORMAT_UNDERLINED = 
			"<w:u w:val=\"single\"/>" ; //$NON-NLS-1$
	public static final String FORMAT_SUPERSCRIPT = 
			"<w:vertAlign w:val=\"superscript\"/>" ; //$NON-NLS-1$
	public static final String FORMAT_SUBSCRIPT = 
			"<w:vertAlign w:val=\"subscript\"/>" ; //$NON-NLS-1$
	
	public static final String LINE_BREAK = "<w:br/>" ; //$NON-NLS-1$
	
	public static final String MAIL_LINK_START = 
			"<w:hlink w:dest=\"mailto:%s\">" ; //$NON-NLS-1$
	public static final String MAIL_LINK_END = "</w:hlink>" ; //$NON-NLS-1$
	
	public static final String LINK_RUN_PROPERTY = 
			"<w:rStyle w:val=\"Hyperlink\"/>" ; //$NON-NLS-1$
	public static final String LINK_RUN = String.format("%s%s%s", //$NON-NLS-1$
			RUN_PROPERTIES_START,
			LINK_RUN_PROPERTY,
			RUN_PROPERTIES_END) ;
	
	public static final String HYPERTEXT_LINK_START = 
			"<w:hlink w:dest=\"%s\">" ; //$NON-NLS-1$
	public static final String HYPERTEXT_LINK_END = MAIL_LINK_END ;
	
}// interface WordTags